package com.nofx.mydemo.listener;

import org.springframework.context.event.ContextStartedEvent;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

/**
 * @author yyc-01407250
 * @date 2021年05月11日 14:17
 */
@Component
public class AnnotationDrivenEventListener {

    @EventListener
    public void handleContextStart(ContextStartedEvent cse){
        System.out.println("==== Handling context started event ====");
    }

}
